home *** CD-ROM | disk | FTP | other *** search
- COUNTING CURSOR
- Rev. 2.1
- (c) 1986, 1987 by Thomas A. Lundin
- All Rights Reserved
-
-
- WHAT'S NEW
-
- 06/28/87 This update introduces a memory-resident version of CCUR named
- CCUR.COM. (CCUR.EXE is no longer used.)
-
-
- BACKGROUND
-
- In the course of my involvement in media conversion services -- for example,
- taking a 9-track magnetic tape and transferring the data onto an IBM PC
- floppy -- I am often given a data base file of some kind to be processed from
- a fixed-length format to comma-delimited SDF or some such type. Usually,
- these files are not accompanied by any record layout, and I previously had
- resorted to calling up a portion of the file using the TYPE command (or some
- screen editor) and manually counting characters to establish the layout.
- Accuracy is critical, so I'd usually go through this counting procedure at
- least twice until I was satisfied that the field lengths I'd come up with were
- correct. The public domain program RULER.COM had been a big help in giving me
- a visual point of reference on the screen when counting across large voids of
- blank spaces, so, taking the idea behind RULER a step further, I wrote
- CCUR.EXE, the Counting Cursor program.
-
- CCUR places a movable cursor on a static screen display and lets your fingers
- do the walking while the cursor does the counting. The counter can be toggled
- on or off and initialized to zero or one anywhere on the screen, giving you a
- quick count of the characters spanning two points.
-
- Features of CCUR include a constantly-updated row/column coordinate readout;
- the ability to jump to the top left, lower right, or center of the display, as
- well as to the beginning or end of a line with a single keystroke; the ability
- to skip forward or backward a specified number of characters from the current
- point; the ability to write the displayed widths to a file for external
- reference; and the ability to save the screen image in a disk file. Version
- 2.1 (CCUR.COM) provides the capabilities of CCUR in a memory-resident form
- and adds a time/date display to the help screen.
-
-
- OPERATION
-
- Usage:
- CCUR ─┘ for the memory-resident version
- CCUR /n ─┘ for the non-resident version
-
- The current display is left as-is, but a status line is displayed on line 25
- of the screen. A block cursor is positioned at the upper left corner of the
- display.
-
- MEMORY RESIDENT NOTE:
- Use the Shift-PrtSc combination to invoke the program at any time. CCUR
- provides its own PrtSc function in place of the one it wipes out. To remove
- CCUR from memory, you must reboot your computer.
-
- THE STATUS LINE:
- The right portion of the status line provides a readout of the current
- counter value (or OFF), the value offset (0 or 1), and the current cursor
- row/column coordinate.
-
- F1 - Help key
- A pop-up menu will appear at the top of the screen showing a list of
- available commands and the current date and time. Press any key to
- remove the menu and continue where you left off. Pressing a command key
- from the help menu will execute that command immediately.
-
- Arrow Keys
- These keys operate as you would expect them to.
-
- HOME key
- Places the cursor at the start of the current row, updates the counter
- accordingly.
-
- END key
- Places the cursor at the end of the current row, updates the counter
- accordingly.
-
- PgUp key
- Places the cursor in the upper left screen corner, updates the counter
- accordingly.
-
- PgDn key
- Places the cursor in the lower right screen corner, updates the counter
- accordingly.
-
- 5 key (num pad shift 5)
- Places the cursor in the middle of the display area, updates the counter
- accordingly.
-
- Gray (-) key
- Allows input of a numeric value to be subtracted from the current cursor
- location. The cursor is positioned backward the number of characters
- specified by the value, and the counter is updated. If the value would
- cause the cursor to be displayed past the HOME position, the operation is
- ignored.
-
- Gray (+) key
- Allows input of a numeric value to be added to the current cursor
- location. The cursor is positioned forward the number of characters
- specified by the value, and the counter is updated. If the value would
- cause the cursor to be displayed past the END position, the operation is
- ignored.
-
- '0' (zero)
- Causes the base counter and coordinate values to begin at zero. This
- command is provided for notational convenience, as you might be
- accustomed to counting from zero.
-
- '1' (one)
- Causes the base counter and coordinate values to begin at one. This
- command is provided for notational convenience, as you might be
- accustomed to counting from one.
-
- 'C'ount
- If the counter is currently OFF, this command turns the counter ON and
- initializes it. If the counter is currently ON, this command turns the
- counter OFF. An active counter can be cleared by pressing 'C' twice.
-
- 'W'rt
- If the counter is ON, the current value in the counter display is
- recorded in memory and will be written to a disk file when the program is
- exited. The Wrt (Write Count) command can be executed multiple times;
- each counter value recorded will be separated by a comma. The colon
- following the word "Count" will blink to inform you that the recording
- has taken place.
-
- 'PrtSc' (unshifted PrtSc)
- The current screen image will be sent to the printer or to a disk file.
- If no file name is provided at the prompt, the printer is used. Each
- saved screen line is terminated by a carriage return/line feed
- combination and trailing blanks at the end of screen lines are removed.
- This Print Screen routine is much faster than the one provided by DOS.
-
- ESC key or 'Q'
- Exits back to DOS in the stand-alone version or exits back to the
- suspended application in the memory-resident version. If the Wrt command
- was used, the saved data will be sent to the printer or to a disk file
- before exiting. If no file name is provided at the prompt, the printer
- is used.
-
-
-
- NOTES
-
- PROGRAM INFORMATION:
- CCUR was written in Lattice C, v 3.1. Screen I/O routines were adapted for
- use from JCLIB.C by Dr. Jim Conn. The low-level TSR functions were provided
- by John Riley of Lattice Inc.
-
- SYSTEM REQUIREMENTS:
- IBM PC or compatible, 128K memory, DOS 2.x or 3.x. The memory-resident
- version eats up about 22K of RAM. (Warning: If you call CCUR from the DOS
- prompt more than once, it will load itself again and eat up another 22K.)
-
- DISCLAIMER:
- This program is provided as-is. It has been tested on an IBM PC, American/AT,
- Leading Edge Model D, NEC APC III, and a Super/XT, and has been found to be
- stable on these machines even when running other TSR programs (including
- DoubleDOS), and yet: It may not do what you want it to do, and it may not work
- on your particular clone or compatible. You will assume all risk of use.
-
- LICENSE:
- You may copy this program all you want. Share it. Upload it. Use it. Don't
- charge any money for its distribution or use, unless a portion of what you
- charge is contributed to me. Also, don't integrate this program with any
- other program or commercial service and try to claim it's your property;
- that's unethical and dishonorable.
-
- BUG FIXES/ENHANCEMENTS:
- Ver. 1.1: Minor bug in Wrt command corrected to now record the displayed
- value of the counter, as opposed to the zero offset value.
- Ver. 1.2: Screen save operation is instantaneous now, thanks to improved
- BIOS support in Lattice C 3.1.
- Ver. 2.0: Added a separate pop-up help screen. Changed the file
- interface somewhat. Also implemented a long-awaited
- memory-resident version.
- Ver. 2.1: Correctly set original cursor type & position on exit; added
- time/date display to help menu; integrated resident and
- non-resident programs in one.
-
- FINALLY:
- If you find this program to be of value, contributions in any amount ($10
- suggested) will be gratefully accepted. All contributors will be mailed the
- latest version of the program as it becomes available and their suggestions
- will have priority consideration for subsequent releases. Contributors who
- donate $25 or more will also receive a bonus diskette of productivity aids I
- have developed and found useful in my work.
-
- Send comments/bug reports/contributions to:
-
- ╔══════════════════════════╗
- ║ Thomas A. Lundin ║
- ║ Graphics Unlimited, Inc. ║
- ║ 3000 Second Street North ║
- ║ Minneapolis, MN 55411 ║
- ║ (612) 588-7571 ║
- ╚══════════════════════════╝
-
- Thank you for using CCUR.